CreditCards

interface CreditCards

A data store for credit cards.

Functions

Link copied to clipboard
abstract fun add(creditCard: CreditCard): String
Adds a new record to the credit card store.
Link copied to clipboard
abstract fun all(): List<CreditCard>
Returns all credit cards.
Link copied to clipboard
abstract fun clear()
Clears all records in the store.
Link copied to clipboard
abstract fun remove(creditCard: CreditCard)
Removes the credit from the store.